package com.ychen.ruijee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ychen.ruijee.bean.ShoppingCart;

/**
 * @author ychen@gotop.cn
 * @date 2024-06-08 14:24
 */
public interface ShoppingCartService extends IService<ShoppingCart> {
    /**
     * 添加商品到购物车
     * @param shoppingCart
     * @return
     */

    ShoppingCart saveShopoingCart(ShoppingCart shoppingCart);

    /**
     * 减少 购物车中的 份数
     * @param shoppingCart
     * @return
     */
    boolean subShoppingCart(ShoppingCart shoppingCart);
}
